package com.vito.act.tool;

import java.io.Serializable;
import java.util.Map;

import org.activiti.engine.delegate.DelegateTask;
import org.activiti.engine.delegate.TaskListener;
import org.activiti.engine.impl.persistence.entity.ExecutionEntity;
import org.activiti.engine.impl.persistence.entity.TaskEntity;

import com.vito.oa.act.constant.OaActContants;

public class ActivitTaskCompeleListener implements TaskListener,Serializable {

	/**
	 * 
	 */
	private static final long serialVersionUID = -555347596990106000L;


	public void notify(DelegateTask delegateTask) {
		TaskEntity task = (TaskEntity) delegateTask;
		ExecutionEntity entity = task.getExecution();
		OaActivitiTool.jumpToNextAvailableTask(entity,entity.getActivity());
		//entity.setVariable(OaActContants.ORIGIN_TRANSITION, originInfoMap);
	}
}
